<template>
  <div>
    <Form :validOnChange="true" :model="model">
      <FormItem label="CRON">
        <input v-model="model.cron" type="text" />
      </FormItem>
    </Form>
    <div slot="footer">
      <Button :block="true" text-color="primary" @click="save">确认</Button>
    </div>
    <br />
  </div>
</template>
<script>
export default {
  data() {
    return {
      model: {
        cron: "",
      },
    };
  },
  methods: {
    initInfo(data) {
      if (!!data) {
        this.model = data;
      }
    },
    save() {
      this.$emit("setContent", this.model);
    },
  },
  deactivated() {
    this.$destroy(true);
  },
};
</script>
